function SetHome(b) {
	if (document.all) {
		document.body.style.behavior = "url(#default#homepage)";
		document.body.setHomePage(b)
	} else {
		alert("此操作被浏览器拒绝！\n请在浏览器地址栏输入“about:config”并回车\n然后将 [signed.applets.codebase_principal_support]的值设置为'true',双击即可。")
	}
}
$(function() {
	function A(c, a) {
		var b = {
			wrap: "mod_box",
			content: "tabBd",
			activeStyle: "on",
			autoplay: false,
			mode: "mouseover",
			leaveMode: "mouseout",
			timer: 0
		};
		this.elem = c;
		this.options = $.extend({}, b, a)
	}
	A.prototype = {
		intervalId: "",
		currentIndex: 0,
		init: function() {
			var b = this.options;
			var a = $("." + b.wrap);
			a.each(function(d, c) {
				$(c).find("." + b.content).hide().eq(0).show()
			});
			this.events();
			if (this.options.autoplay) {
				this.play()
			}
		},
		actioned: function(b) {
			var d = this.options;
			var a = b.index();
			this.currentIndex = a;
			var c = b.parents("." + d.wrap).find("." + d.content);
			b.addClass(d.activeStyle).siblings().removeClass(d.activeStyle);
			c.hide().eq(a).show();
			$(window).trigger("scroll")
		},
		play: function() {
			var a = this;
			this.stopPlay();
			this.intervalId = setInterval(function() {
				var c = a.currentIndex + 1;
				if (c > a.elem.length - 1) {
					c = 0
				}
				var b = $(a.elem.eq(c));
				a.actioned(b)
			}, this.options.timer)
		},
		stopPlay: function() {
			if (this.options.autoplay && this.intervalId) {
				clearInterval(this.intervalId)
			}
		},
		events: function() {
			var e = this;
			var b = this.elem;
			var c = this.options.mode;
			b.on(c, function() {
				var f = $(this);
				e.actioned(f)
			});
			if (this.options.autoplay) {
				var e = this;
				var c = this.options.mode;
				var d = this.options.leaveMode;
				var a = $("." + this.options.wrap);
				a.on(c, function() {
					e.stopPlay()
				});
				a.on(d, function() {
					e.play()
				})
			}
		}
	};
	$.fn.tabs = function(b) {
		var a = new A(this, b);
		a.init()
	};
	$(".tabauto li").tabs({
		autoplay: false,
		wrap: "mod_play",
		timer: 5000
	});
	$(".tabUl li").tabs();

	function l(d, e) {
		var b = {
			handle: ["slider-ctrl-next", "slider-ctrl-prev"],
			contents: ["slider-main", "slider-main-img"],
			mode: "click",
			direct: "1",
			speed: 150,
			margin: 0,
			listNum: 1,
			delayTime: 3500,
			loop: false,
			auto: false,
			msg: ["左边没数据了", "右边没数据了"],
			afterMove: null,
			beforeMove: null
		};
		this.elem = d;
		this.options = $.extend({}, b, e);
		var f = this.options.contents[1].split("~");
		var g = f.length === 2 ? f[1] : "." + f[0];
		f = this.options.contents[0].split("~");
		var h = f.length === 2 ? f[1] : "." + f[0];
		var a = d.find(h).find(g);
		var c = this.options.margin ? this.options.margin : 0;
		this.margin = c;
		this.ctCls = h;
		this.tarCls = g;
		this.tarL = this.options.direct === "1" ? a.width() + c : a.height()
	}
	l.prototype = {
		init: function() {
			var c = this.options;
			var b = this.elem;
			var a = this;
			b.each(function(g, e) {
				var f = $(e).find(a.ctCls).eq(0);
				var h = f.find(a.tarCls);
				var i = h.length;
				var d = (h.width() + a.margin) * i;
				f.css("position", "relative");
				if (c.direct !== "1") {
					$(e).height(a.tarL);
					d = h.height() * i;
					h.height(a.tarL);
					f.css("top", 0);
					f.height(d)
				} else {
					f.css("left", 0);
					f.width(d)
				}
			});
			if (c.auto) {
				a.autoPlay()
			}
			this.event()
		},
		autoPlay: function() {
			var a = this;
			$("." + a.options.handle[1]).each(function(d, b) {
				a.play = setInterval(c, a.options.delayTime);

				function c() {
					if (a.bTrue === false) {
						a.bTrue = true;
						a.actioned($(b))
					}
				}
			})
		},
		actioned: function(m, h) {
			var c = this;
			var b = this.options;
			var j = this.tarL * b.listNum;
			if (b.handle.length === 3) {
				var e = m.parents("." + b.handle[2])
			} else {
				var e = m.parent()
			}
			var i = e.find(c.ctCls).eq(0);
			var k = i.find(c.tarCls);
			var p = b.direct === "1" ? i.width() : i.height();
			var g = b.direct === "1" ? (i.width() - j) : (i.height() - j);
			var f = b.direct === "1" ? parseInt(i.css("left")) : parseInt(i.css("top"));
			!h ? this.pageIndex++ : this.pageIndex--;
			(function n() {
				if (h) {
					if (f <= 0) {
						if (f === 0) {
							if (!b.loop) {
								alert(b.msg[0]);
								c.flag = false;
								return
							}
							c.pageIndex = k.length - 1;
							a()
						}
						f = f + j + "px"
					}
				} else {
					if (f + g >= 0) {
						if (f + g == 0) {
							if (!b.loop) {
								alert(b.msg[1]);
								c.flag = false;
								return
							}
							c.pageIndex = 0;
							a()
						}
						f = f - j + "px"
					}
				}
				b.direct === "1" ? q() : q(true);

				function q(H) {
					var G = {
						left: f
					};
					if (H) {
						G.top = f;
						delete G.left
					}
					if (c.bTrue) {
						i.animate(G, b.speed, d)
					}
				}
			})();

			function a() {
				var I = i.clone().find(c.tarCls);
				var q = "";
				for (var H = 0, J = I.length; H < J; H++) {
					q = q + I[H].outerHTML
				}
				if (b.direct === "1") {
					i.append(q).width(p * 2)
				} else {
					i.append(q).height(p * 2)
				}
				if (h) {
					if (b.direct === "1") {
						i.css("left", -p)
					} else {
						i.css("top", -p)
					}
					f = -p
				}
				c.index++
			}
			function d() {
				c.flag = false;
				if (c.index !== 1) {
					var q = h ? q : 0;
					c.index = 1;
					k.remove();
					if (b.direct === "1") {
						i.width(p).css("left", q)
					} else {
						i.height(p).css("top", q)
					}
				}
				$(window).trigger("scroll");
				if (typeof b.afterMove === "function") {
					b.pageIndex = c.pageIndex;
					b.afterMove.call(c.elem, b)
				}
				c.bTrue = false
			}
		},
		event: function() {
			var e = this;
			var d = this.options;
			var g = d.mode;
			var b = $("." + d.handle[0]);
			var f = $("." + d.handle[1]);
			var h = this.elem.find(e.ctCls).eq(0);
			if (d.auto) {
				c(h);
				c(b);
				c(f)
			}
			i(b);
			i(f, true);

			function i(j, k) {
				j.on(g, function() {
					var m = $(this);
					e.bTrue = true;
					a(m, k)
				})
			}
			function a(j, k) {
				if (!e.flag) {
					e.flag = true;
					$(window).trigger("scroll");
					e.actioned(j, k)
				}
			}
			function c(j) {
				j.on("mouseover", function() {
					clearInterval(e.play)
				}).on("mouseout", function() {
					e.autoPlay()
				})
			}
		},
		play: null,
		index: 1,
		flag: false,
		pageIndex: 0,
		bTrue: false
	};
	$.fn.scroller = function(b) {
		var a = new l(this, b);
		a.init()
	};
	var r = $(".search-select .menu");
	r.hover(function() {
		$(this).addClass("on")
	}, function() {
		$(this).removeClass("on")
	});
	$(".layer_r .wechat").hover(function() {
		$(".layer_r .ma").show()
	}, function() {
		$(".layer_r .ma").hide()
	});
	$(".site-nav-r li").hover(function() {
		$(this).find(".boxPop").show()
	}, function() {
		$(this).find(".boxPop").hide()
	});
	$(".backTop li,.actCalendar li,.midlist li").hover(function() {
		$(this).addClass("on")
	}, function() {
		$(this).removeClass("on")
	});
	$(".backTop .qq").hover(function() {
		$(this).find(".link").animate({
			right: "40px",
			opacity: "1"
		});
		$(this).children("a").show()
	}, function() {
		$(this).find(".link").animate({
			right: "60px",
			opacity: "0"
		})
	});
	var w = null;
	var u = window.tbflag;

	function o() {
		w = setTimeout(function() {
			s();
			clearTimeout(w)
		}, 5000)
	}
	function s() {
		$(".topbanner").animate({
			height: "0px"
		}, function() {
			$(".opentb").show()
		});
		if (w) {
			clearTimeout(w)
		}
	}
	function z() {
		var a = $(".opentb").find("img").data("url");
		window.open(a)
	}
	function C() {
		var d = $(".head-wrap");
		var c = $(this).width();
		var b = $(".container").first().width() + 20;
		if (d.length == 0) {
			return
		}
		if (c < 1257) {
			$(".opentb").css({
				left: "auto",
				right: 0,
				top: "93px"
			})
		} else {
			var a = d.offset().left + b;
			var e = d.offset().top;
			$(".opentb").css({
				left: a,
				right: "auto",
				top: "93px"
			})
		}
	}
	$(".topbanner .close").click(function() {
		s()
	});
	$(".opentb").click(function() {
		z()
	});
	var B = window.topBannerCk;
	if (!u) {
		$(".topbanner").slideDown();
		o()
	} else {
		$(".topbanner").css({
			height: "0"
		}).show();
		$(".opentb").show()
	}
	C();
	$(window).resize(function(a) {
		C()
	});
	var x = $(".hy-slide-l");
	var D = $(".hy-slide-r");
	var y = $(".rfwlb .hy-slide");
	var v = y.find("li").length;
	y.css("width", v * 133 + "px");
	var t = 0;
	x.click(function() {
		if (t <= 0) {
			t = v
		}
		t -= 1;
		y.stop().animate({
			"margin-left": -(t * 133) + "px"
		}, 100)
	});
	D.click(function() {
		if (t >= (v - 2)) {
			t = 0
		}
		t += 1;
		y.stop().animate({
			"margin-left": -(t * 133) + "px"
		}, 100)
	});
	$(".dropDown ul li").click(function() {
		$(this).parents(".item").find(".con").hide().eq($(this).index()).show()
	});
	$(".terraceMod .dropDown").each(function(a, d) {
		var b = $(d);
		var e = b.find(".dropBtn");
		var c = b.find(".putIn");
		var f = b.find("ul");
		b.click(function() {
			f.toggle();
			$(this).toggleClass("dropDown-open");
			if (a == "0") {
				$(".itemSecond ul").hide();
				$(".terraceMod .itemSecond .dropDown").removeClass("dropDown-open")
			} else {
				$(".itemFrist ul").hide();
				$(".terraceMod .itemFrist .dropDown").removeClass("dropDown-open")
			}
		});
		c.click(function() {
			f.toggle()
		});
		f.find("li").click(function() {
			c.val($(this).text());
			$(".terraceMod .dropDown").removeClass("dropDown-open");
			f.hide();
			return false
		});
		$(document).click(function(g) {
			if (!$(g.target).parents().hasClass("dropDown")) {
				f.hide();
				$(".terraceMod .dropDown").removeClass("dropDown-open")
			}
		})
	});
	$(window).load(function() {
		$("#content-3").mCustomScrollbar({})
	});
	$(".actCalendar li").each(function(a, c) {
		var b = $(this);
		var d = $(".actPop");
		b.hover(function() {
			var f = b.attr("campaignTime");
			var j = b.attr("src");
			var h = b.attr("originalFlag");
			var k = b.attr("title");
			var i = b.attr("campaignLocal");
			var g = '<span class="arrow"><i></i></span><img    src=' + j + " alt=" + k + '  class="pic"    />';
			g += '<div class="con"><p class="p_name">';
			if (!$.trim(h) == "") {
				g += '<span class="from">' + h + "</span>"
			}
			g += "  " + k + "</p>";
			g += '<p class="gray"><span>地点：' + i + " </span><span>时间：" + f + "</span></p></div>";
			d.html(g);
			var e = b.offset();
			d.css({
				left: (e.left - 360) + "px",
				top: (e.top - 20) + "px"
			}).show()
		}, function() {
			d.hide()
		})
	})
});
$(document).ready(function() {
	var g = $(".weichuangyi_span a").length;
	var h = 0;
	var f = null;
	$(".weichuangyi_ul li:gt(0)").hide();
	$(".weichuangyi_span a").click(function() {
		$(this).addClass("weichuangyi_span_one").siblings("a").removeClass("weichuangyi_span_one");
		var a = $(".weichuangyi_span a").index(this);
		$(".weichuangyi_ul li").eq(a).fadeIn("slow").siblings("li").fadeOut("slow");
		h = a;
		$(window).trigger("scroll")
	});
	$(".weichuangyi_left").click(function() {
		if (h == 0) {
			h = g
		}
		$(".weichuangyi_ul li").eq(h - 1).fadeIn("slow").siblings("li").fadeOut("slow");
		$(".weichuangyi_span a").eq(h - 1).addClass("weichuangyi_span_one").siblings("a").removeClass("weichuangyi_span_one");
		h--;
		$(window).trigger("scroll")
	});
	$(".weichuangyi_right").click(function() {
		j();
		$(window).trigger("scroll")
	});

	function i() {
		f = setInterval(function() {
			j()
		}, 4000)
	}
	i();
	$(".weichuangyi").mouseover(function() {
		clearInterval(f)
	});
	$(".weichuangyi").mouseout(function() {
		i()
	});

	function j() {
		if (h == g - 1) {
			h = -1
		}
		$(".weichuangyi_ul li").eq(h + 1).fadeIn("slow").siblings("li").fadeOut("slow");
		$(".weichuangyi_span a").eq(h + 1).addClass("weichuangyi_span_one").siblings("a").removeClass("weichuangyi_span_one");
		h++;
		$(window).trigger("scroll")
	}
});
jQuery.cookie = function(w, p, i) {
	if (typeof p != "undefined") {
		i = i || {};
		if (p === null) {
			p = "";
			i = $.extend({}, i);
			i.expires = -1
		}
		var t = "";
		if (i.expires && (typeof i.expires == "number" || i.expires.toUTCString)) {
			var s;
			if (typeof i.expires == "number") {
				s = new Date();
				s.setTime(s.getTime() + (i.expires * 24 * 60 * 60 * 1000))
			} else {
				s = i.expires
			}
			t = "; expires=" + s.toUTCString()
		}
		var n = i.path ? "; path=" + (i.path) : "";
		var r = i.domain ? "; domain=" + (i.domain) : "";
		var x = i.secure ? "; secure" : "";
		document.cookie = [w, "=", encodeURIComponent(p), t, n, r, x].join("")
	} else {
		var u = null;
		if (document.cookie && document.cookie != "") {
			var o = document.cookie.split(";");
			for (var q = 0; q < o.length; q++) {
				var v = jQuery.trim(o[q]);
				if (v.substring(0, w.length + 1) == (w + "=")) {
					u = decodeURIComponent(v.substring(w.length + 1));
					break
				}
			}
		}
		return u
	}
};

function supports_input_placeholder() {
	var b = document.createElement("input");
	return "placeholder" in b
}
$(function() {
	var d = $("input[placeholder],textarea[placeholder]");
	if (d.length !== 0 && !supports_input_placeholder()) {
		var c = "#A9A9A9";
		$.each(d, function(b) {
			var h = 0;
			var a = $(this).attr("placeholder");
			var g = $(this).css("color");
			$(this).val(a).css("color", c);
			$(this).focus(function() {
				if ($(this).val() == a && !h) {
					$(this).val("").css("color", g)
				}
			}).blur(function() {
				if ($(this).val() == "") {
					$(this).val(a).css("color", c);
					h = 0
				}
			}).keyup(function() {
				if ($(this).val() !== a) {
					h = 1
				}
			})
		})
	}
});
(function(b) {
	b.fn.imgshow = function() {
		this.each(function() {
			var l = b(this).find("img");
			var j = 0;
			var m = 0;
			var n = "";
			var k = "";
			var i = "";
			l.click(function() {
				l.each(function(e, d) {
					b(d).attr("eq", e);
					var c = b(this).attr("data-original");
					if (!c) {
						k += "<img src='" + b(this).attr("src") + "' />"
					} else {
						k += "<img src='" + c + "' />"
					}
				});
				b("#GB_window").html(k);
				i = "#GB_window";
				b(".div_tier").show();
				n = b(this);
				m = parseInt(n.attr("eq"));
				j = l.length;
				b(i + " img")[m].onload = function() {
					a(i, m, n.attr("title"))
				}
			});

			function a(v, h, c) {
				c = c || "";
				h += 1;
				var d = b(v + " img");
				b(v).show();
				b("#GB_caption").html(c);
				b(".GB_navStatus").html(h + "/" + j);
				d.css({
					display: "none",
					width: "auto",
					height: "auto"
				});
				d.eq(m).show();
				var u = d.eq(m).height();
				var f = d.eq(m).width();
				var e = b(window).height() - 100;
				var w = b(window).width() - 350;
				if (u > e) {
					d.eq(m).height(e)
				} else {
					if (f > w) {
						d.eq(m).width(w)
					}
				}
				var t = d.eq(m).height() / 2;
				var g = d.eq(m).width() / 2;
				b(v).stop(true, true).animate({
					"margin-top": "-" + t + "px",
					"margin-left": "-" + g + "px"
				}, 0)
			}
			b("#GB_middle .left").click(function() {
				if (m <= 0) {
					return
				}
				m -= 1;
				a(i, m, n.attr("title"))
			});
			b("#GB_middle .right").click(function() {
				if (m >= j - 1) {
					return
				}
				m += 1;
				a(i, m, n.attr("title"))
			});
			b("#GB_close img").click(function() {
				b("body").css("overflow", "auto");
				b(".div_tier").hide();
				b("#GB_window").hide()
			})
		})
	}
})(jQuery);
$(function() {
	var b = $(".menu-hd").parent();
	b.hover(function() {
		$(this).find(".menu-bd-panel").show()
	}, function() {
		$(this).find(".menu-bd-panel").hide()
	})
});
$(function() {
	var e = $(".search-tab li");
	var d = $(".search-panel .ipt-search");
	var f = ["请输入平台名称或简拼", "", "", "", ""];
	e.mouseover(function() {
		e.removeClass("curr");
		if (!$(this).hasClass("cur")) {
			$(this).addClass("curr")
		}
	})
});
$(function() {
	var b = $(".qrcode");
	b.find(".qr-ft").click(function() {
		b.hide();
		return false
	})
});
$(".selectbox").each(function(h, k) {
	var i = $(k);
	var l = i.find("i");
	var j = i.find("div");
	var g = i.find("ul");
	l.click(function() {
		g.toggle()
	});
	j.click(function() {
		g.toggle()
	});
	g.find("li").click(function() {
		j.text($(this).text());
		g.hide();
		return false
	});
	$(document).click(function(a) {
		if (!$(a.target).parents().hasClass("selectbox")) {
			g.hide()
		}
	})
});

function advall() {
	$(".advall").each(function(l, j) {
		var i = $(this).find("a");
		var k = Math.random();
		var h = Math.round(k * (i.length - 1));
		var e = $.cookie("cookimgeq" + l);
		if (e != null || e != undefined) {
			if (e == "0") {
				h = "1"
			} else {
				h = "0"
			}
		}
		$.cookie("cookimgeq" + l, h);
		i.eq(h).show()
	})
}
$(function() {
	$(".adv_box").each(function(n, l) {
		var i = $(l);
		var o = i.find("a");
		var a = 0;
		var m;
		var e = o.height();
		i.css({
			height: e + "px"
		});

		function p(b) {
			if (a >= o.length) {
				a = 0
			}
			o.eq(a).fadeIn(1000).siblings("a").fadeOut(1000);
			m = window.setTimeout(function() {
				p()
			}, 4000);
			a++
		}
		i.hover(function() {
			if (m) {
				window.clearTimeout(m)
			}
		}, function() {
			p()
		});
		p()
	})
});
$(function() {
	var o = $(".searchCon");
	var p = o.find(".shaix_select");
	var i = o.find(".shaix_list");
	var n = o.find(".select_span");
	var k = p.find("a");
	var m = i.find("a");
	var l = o.find(".open");
	var j = function(a) {
			n.find("span[aid=" + a + "]").remove()
		};
	m.click(function() {
		var a = $(this);
		var d = a.index(".shaix_list a");
		if (a.parent().hasClass("searchFont_pad")) {
			a.parent().find("a").each(function(e, f) {
				$(this).stop()
			});
			a.addClass("bor").siblings().removeClass("bor");
			return
		}
		if (a.hasClass("unlimited")) {
			a.parent().find("a").each(function(e, f) {
				$(this).removeClass("on");
				j($(this).index(".shaix_list a"))
			});
			a.addClass("on");
			select_list_sh();
			return
		}
		if (a.hasClass("on")) {
			a.removeClass("on");
			if (a.parent().find(".on").length < 1) {
				a.parent().find(".unlimited").addClass("on")
			}
			j(d);
			select_list_sh();
			return
		}
		a.addClass("on").siblings(".unlimited").removeClass("on");
		if (n.find("span[aid=" + d + "]").length < 1) {
			var c = $("<i>").addClass("close");
			var b = $("<span>").addClass("tagEd").attr({
				aid: d,
				val: a.attr("val"),
				tar: a.parent().parent().attr("tar")
			}).append(a.text()).append(c);
			n.append(b)
		}
		i.show();
		c.click(function() {
			var f = $(this).parent();
			var e = $(".shaix_list a").eq(f.attr("aid"));
			f.remove();
			e.removeClass("on");
			if (e.parent().find(".on").length < 1) {
				e.siblings(".unlimited").addClass("on")
			}
			select_list_sh()
		});
		select_list_sh()
	});
	var hh = i.height();
	var hhh = i.height("auto").innerHeight();
	i.height(hh);
	k.click(function() {
		n.html("");
		m.removeClass("on");
		m.removeClass("bor");
		i.find(".unlimited").addClass("on");
		if (hh != hhh) {
			i.animate({
				height: hh + "px"
			}, 300);
			l.html('展开全部选项<i class="arrow"><s></s></i>')
		}
		select_list_sh()
	});
	l.click(function() {
		if (i.height() != hhh) {
			i.animate({
				height: hhh + "px"
			}, 300);
			l.html('收起全部选项<i class="arrow arrowUp"><s></s></i>')
		} else {
			i.animate({
				height: hh + "px"
			}, 300);
			l.html('展开全部选项<i class="arrow"><s></s></i>')
		}
	})
});
$(function() {
	$(".myComList").each(function(f, i) {
		var g = $(this).find("dl");
		var h = $(this).find(".openBtn");
		var j = g.length;
		if (j > 2) {
			g.eq(1).nextAll("dl").hide();
			h.show()
		}
		h.find("a").click(function() {
			if (g.eq(2).css("display") == "none") {
				$(this).text("↑收起回复");
				g.show()
			} else {
				$(this).text("↓展开回复");
				g.eq(1).nextAll("dl").hide()
			}
		})
	})
});

function advall(b) {
	$("#" + b).each(function(k, i) {
		var e = $(this).find("a");
		var j = Math.random();
		var a = Math.round(j * (e.length - 1));
		var l = $.cookie("cookimgeq" + b + k);
		if (l != null || l != undefined) {
			if (l == "0") {
				a = "1"
			} else {
				a = "0"
			}
		}
		$.cookie("cookimgeq" + b + k, a);
		e.eq(a).show()
	})
}
function adv_box(b) {
	$("#" + b).each(function(n, l) {
		var i = $(l);
		var o = i.find("a");
		var a = 0;
		var m;
		var e = $(l).find("img").eq(0).attr("height");
		i.css({
			height: e + "px"
		});

		function p(c) {
			if (a >= o.length) {
				a = 0
			}
			o.eq(a).fadeIn(1000).siblings("a").fadeOut(1000);
			m = window.setTimeout(function() {
				p()
			}, 4000);
			a++
		}
		i.hover(function() {
			if (m) {
				window.clearTimeout(m)
			}
		}, function() {
			p()
		});
		p()
	})
}
var advOpts = {
	loop: true
};

function AutoScroll(c, d) {
	var d = d || 80;
	$(c).find("ul:first").animate({
		marginTop: "-" + d + "px"
	}, 1200, function() {
		$(this).css({
			marginTop: "0px"
		}).find("li:first").appendTo(this)
	})
}
function advPlay(c, d) {
	$("#" + c).each(function(i) {
		var b = $(this);
		var h = b.find("li").height();
		var a = b.attr("id") || (b.attr("id", "adv_in-" + i), b.attr("id"));
		if (b.find("ul li").length > 1) {
			switch (d) {
			case 0:
				setInterval('AutoScroll("#' + a + '", ' + h + ")", 8000);
				break;
			case 1:
				if (advOpts.loop) {
					j()
				}
				break;
			case 2:
				if (advOpts.loop) {
					j()
				}
				setInterval('AutoScroll("#' + a + '", ' + h + ")", 8000);
				break
			}
		}
		function j() {
			var f = b.find("ul"),
				g = f.find("li");
			var e = $.cookie("advid" + c);
			if (e && e === "0") {
				$.cookie("advid" + c, "1");
				l()
			} else {
				$.cookie("advid" + c, "0")
			}
			function l() {
				var k = g.eq(e).clone();
				g.eq(e).remove();
				f.append(k)
			}
		}
	})
}
$(function() {});

function random(b) {
	$("#" + b).each(function(k, i) {
		var e = $(this).find("a");
		var j = Math.random();
		var a = Math.round(j * (e.length - 1));
		var l = $.cookie("cookimgeq" + k);
		if (l != null || l != undefined) {
			if (l == "0") {
				a = "1"
			} else {
				a = "0"
			}
		}
		$.cookie("cookimgeq" + k, a);
		e.eq(a).show().siblings("a").hide()
	})
}
$(function() {
	$(".slider-scroll").scroller({
		loop: true,
		auto: true,
		speed: 350
	});
	$(".v_out").scroller({
		handle: ["next", "prev"],
		contents: ["~ul", "~li"],
		auto: false,
		loop: true,
		speed: 350,
		afterMove: function(c) {
			var d = c.pageIndex;
			$(".circle li").removeClass("circle-cur").eq(d).addClass("circle-cur")
		}
	});
	$(".recommendBox .bd").scroller({
		handle: ["btnBox #page-down", "btnBox #page-up", "bd"],
		contents: ["~ul", "~li"],
		margin: 10,
		listNum: 5,
		loop: true
	})
});
$(function() {
	$(".dropBtn-sy").click(function() {
		$(".select").css("z-index", "0");
		$(this).parents(".select").css("z-index", "1000");
		$(this).parent().children(".dropList-sy").toggle();
		$(this).parent().siblings().children(".dropList-sy").hide()
	});
	$(".dropList-sy li").click(function() {
		var b = $(this);
		listText = b.html(), type = b.data("type"), listType = b.data("listtype"), go = $(".searchPT .sear_btn a");
		$(this).parent().parent().children(".putIn").val(listText);
		$(this).parent().hide();
		go.data(listType, type)
	});
	$(".searchPT .sear_btn a").on("click", function() {
		var f = $(this),
			g = "http://www.wdzj.com/dangan/?",
			e = f.data("term") || 0,
			h = f.data("rate") || 0;
		g += "term=" + e + "&rate=" + h;
		window.open(g)
	});
	$(document).bind("click", function(c) {
		var d = $(c.target);
		if (!d.parents().hasClass("select")) {
			$(".dropList-sy").hide()
		}
	})
});